<?php
include 'cabecalhoAdm.php';
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    if (isset($_GET['comando']) == "update") {
        $metodo = atualizar;
    } else {
        $metodo = "cadastro";
    }

    require_once '../../Controller/Controller.Categoria.php';
}
?>
<a href="admin.php">Voltar</a>
<div class="containers">
    <h1>Adicionar Categoria</h1>
    <form class="form-admin" action="<?php $_SERVER['PHP_SELF']; ?>" method="POST">
        <label>Nome:</label><input type="text" name="nome"/><br>		
        </div>
        <input type="SUBMIT" value="Salvar" class="bt_buscar"/>
        <?php if (isset($erro)) {
            echo $erro;
        } elseif (isset($msg)) {
            echo $msg;
        } ?>
    </form>
</div>

</div>
</body>

</html>